package com.pengshun.modules.api.user.para;

import com.pengshun.modules.api.coal.validator.Fifth;
import com.pengshun.modules.api.coal.validator.First;
import com.pengshun.modules.api.coal.validator.Second;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class AuthenticationPara {


    private Long userId;

    @NotNull(message = "name不能为空", groups = {Fifth.class,First.class})
    private String name;

    @NotNull(message = "idcard不能为空", groups = {Fifth.class,First.class})
    private String idcard;

    @NotNull(message = "front不能为空", groups = {Fifth.class})
    private String front;

    @NotNull(message = "contrary不能为空", groups = {Fifth.class})
    private String contrary;

    @NotNull(message = "contrary不能为空", groups = {First.class})
    private String driverPic;

    @NotNull(message = "carNumber不能为空", groups = {Second.class})
    private String carNumber;

    @NotNull(message = "type不能为空", groups = {Second.class})
    private Integer type;

    @NotNull(message = "weight不能为空", groups = {Second.class})
    private BigDecimal  weight;

    @NotNull(message = "carLoad不能为空", groups = {Second.class})
    private BigDecimal  carLoad;

    @NotNull(message = "carLength不能为空", groups = {Second.class})
    private BigDecimal  carLength;

    @NotNull(message = "licensePic不能为空", groups = {Second.class})
    private String licensePic;
}
